package com.qyer.search.model.result;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Collections;
import java.util.Map;

/**
 * User: Z J Wu Date: 2016/02/25 Time: 23:38 Package: com.qyer.search.model.result
 */
public class SearchMetaInfo {

  public static final SearchMetaInfo EMPTY_SEARCH_META_INFO = new SearchMetaInfo(
    Collections.<Integer, Map<Integer, Integer>>emptyMap(),
    Collections.<Integer, Map<Integer, Integer>>emptyMap());

  @JsonProperty("type_info")
  private Map<Integer, Map<Integer, Integer>> typeMap;
  @JsonProperty("dest_info")
  private Map<Integer, Map<Integer, Integer>> destinationMap;

  public SearchMetaInfo(Map<Integer, Map<Integer, Integer>> typeMap,
                        Map<Integer, Map<Integer, Integer>> destinationMap) {
    this.typeMap = typeMap;
    this.destinationMap = destinationMap;
  }

  public Map<Integer, Map<Integer, Integer>> getTypeMap() {
    return typeMap;
  }

  public void setTypeMap(Map<Integer, Map<Integer, Integer>> typeMap) {
    this.typeMap = typeMap;
  }

  public Map<Integer, Map<Integer, Integer>> getDestinationMap() {
    return destinationMap;
  }

  public void setDestinationMap(Map<Integer, Map<Integer, Integer>> destinationMap) {
    this.destinationMap = destinationMap;
  }
}
